<!--{eval $friendsname = array(1 => '{lang friendname_1}',2 => '{lang friendname_2}',3 => '{lang friendname_3}',4 => '{lang friendname_4}');}-->

<!--{template common/header}-->
<div id="pt" class="bm cl">
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<!--{if $diymode}--><a href="home.php?mod=space&uid=$space[uid]">{$space[username]}</a> <em>&rsaquo;</em><!--{/if}-->
		<a href="home.php?mod=space&do=album">{lang album}</a>
	</div>
</div>
<style id="diy_style" type="text/css"></style>
<div class="wp">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="ct_sp wp cl">
	<!--{if $diymode}-->
		<!--{template home/space_menu}-->
		<div class="bm">
			<div class="bm_c cl">
	<!--{/if}-->
	<div class="mn">
		<!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
		<!--{if $_G[uid] && empty($diymode)}-->
			<ul class="tb tb_w cl">
				<li$actives[we]><a href="home.php?mod=space&do=album&view=we">{lang friend_album}</a></li>
				<li$actives[me]><a href="home.php?mod=space&do=album&view=me">{lang my_album}</a></li>
				<li$actives[all]><a href="home.php?mod=space&do=album&view=all">{lang view_all}</a></li>
				<!--{if helper_access::check_module('album')}--><li class="o"><a href="home.php?mod=spacecp&ac=upload">{lang upload_pic}</a></li><!--{/if}-->
			</ul>
		<!--{/if}-->
		<div id="imglist" class="{if empty($diymode)}bm {/if}bml">
			<div class="bm_c">

				<div class="tbmu bw0 cl">
					<!--{if helper_access::check_module('album') && $space[self] && $diymode}-->
						<a href="home.php?mod=spacecp&ac=upload" class="y pn pnc"><strong>{lang upload_pic}</strong></a>
					<!--{/if}-->

					<!--{if $space[self] && $_GET['view']=='me'}-->
						{lang explain_album}
					<!--{/if}-->

					<!--{if $_GET[view] == 'all'}-->
						<a href="home.php?mod=space&do=album&view=all" {if !$_GET[catid]}$orderactives[dateline]{/if}>{lang newest_update_album}</a>
						<span class="pipe">|</span>
						<a href="home.php?mod=space&do=album&view=all&order=hot" $orderactives[hot]>{lang hot_pic_recommend}</a>
						<!--{if $_G['setting']['albumcategorystat'] && $category}-->
							<!--{loop $category $value}-->
								<span class="pipe">|</span>
								<a href="home.php?mod=space&amp;do=album&amp;catid={$value[catid]}&amp;view=all"{if $_GET[catid]==$value[catid]} class="a"{/if}>$value[catname]</a>
							<!--{/loop}-->
						<!--{/if}-->
					<!--{/if}-->

					<!--{if ($_GET['view'] == 'we') && $userlist}-->
						{lang filter_by_friend}
						<select name="fuidsel" onchange="fuidgoto(this.value);" class="ps">
							<option value="">{lang all_friends}</option>
							<!--{loop $userlist $value}-->
							<option value="$value[fuid]"{$fuid_actives[$value[fuid]]}>$value[fusername]</option>
							<!--{/loop}-->
						</select>
					<!--{/if}-->
				</div>

				<!--{if $picmode}-->
					<div class="ptw">
						<!--{if $pricount}-->
							<p class="mbw">{lang hide_pic}</p>
						<!--{/if}-->
						<!--{if $count}-->
							<ul class="ml mlp cl">
								<!--{loop $list $key $value}-->
								<li class="d">
									<div class="c">
										<a href="home.php?mod=space&uid=$value[uid]&do=album&picid=$value[picid]"><!--{if $value[pic]}--><img src="$value[pic]" alt="" /><!--{/if}--></a>
									</div>
									<p class="ptm"><a href="home.php?mod=space&uid=$value[uid]&do=album&id=$value[albumid]" class="xi2">$value[albumname]</a></p>
									<span><a href="home.php?mod=space&uid=$value[uid]">$value[username]</a></span>
								</li>
								<!--{/loop}-->
							</ul>
							<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
						<!--{else}-->
							<div class="emp">{lang no_album}</div>
						<!--{/if}-->
					</div>
				<!--{else}-->

					<!--{if $searchkey}-->
						<p class="mbw">{lang follow_search_album} <span style="color: red; font-weight: 700;">$searchkey</span> {lang doing_record_list}</p>
					<!--{/if}-->

					<!--{if $pricount}-->
						<p class="mbw">{lang hide_album}</p>
					<!--{/if}-->

					<!--{if $count}-->
						<ul id="waterfall" class="ml waterfall cl">
							<!--{loop $list $key $value}-->
							<!--{eval $pwdkey = 'view_pwd_album_'.$value['albumid'];}-->
							<li>
								<div class="c">
									<a href="home.php?mod=space&uid=$value[uid]&do=album&id=$value[albumid]" target="_blank" {if $_G['adminid'] != 1 && $value[uid]!=$_G[uid] && $value[friend]=='4' && $value[password] && empty($_G[cookie][$pwdkey])} onclick="showWindow('list_album_$value[albumid]', this.href, 'get', 0);"{/if}><!--{if $value[pic]}--><img src="$value[pic]" alt="$value[albumname]" /><!--{/if}--></a>
								</div>
								<h3 class="xw0"><a href="home.php?mod=space&uid=$value[uid]&do=album&id=$value[albumid]" target="_blank" {if $_G['adminid'] != 1 && $value[uid]!=$_G[uid] && $value[friend]=='4' && $value[password] && empty($_G[cookie][$pwdkey])} onclick="showWindow('list_album_$value[albumid]', this.href, 'get', 0);"{/if} class="xi2"><!--{if $value[albumname]}-->$value[albumname]<!--{else}-->{lang default_album}<!--{/if}--></a><!--{if $value[picnum]}--> ($value[picnum]) <!--{/if}--></h3>
								<div class="auth cl">
									<!--{if $value[uid]==$_G[uid]}-->
										<p class="xg1"><a href="home.php?mod=spacecp&ac=album&op=editpic&albumid=$value[albumid]">{lang edit}</a> <a href="home.php?mod=spacecp&ac=upload&albumid=$value[albumid]">{lang upload}</a></p>
									<!--{else}-->
										<p><a href="home.php?mod=space&uid=$value[uid]" target="_blank">$value[username]</a></p>
									<!--{/if}-->
									<!--{if $_GET[view]!='me'}--><p>{lang update} <!--{date($value['updatetime'], 'n-j H:i')}--></p><!--{/if}-->
								</div>
							</li>
							<!--{/loop}-->
							<!--{if $space[self] && $_GET['view']=='me'}-->
								<li>
									<div class="c">
										<a href="home.php?mod=space&uid=$value[uid]&do=album&id=-1"><img src="{IMGDIR}/nophoto.gif" alt="{lang default_album}" /></a>
									</div>
									<div class="auth ptm"><a href="home.php?mod=space&uid=$value[uid]&do=album&id=-1" class="xi2">{lang default_album}</a></div>
								</li>
							<!--{/if}-->
						</ul>
						<!--{if $multi}--><div class="pgs cl mtm">$multi</div><!--{/if}-->
					<!--{else}-->
						<!--{if $space[self] && $_GET['view']=='me'}-->
							<ul class="ml waterfall cl">
								<li>
									<div class="c">
										<a href="home.php?mod=space&uid=$value[uid]&do=album&id=-1"><img src="{IMGDIR}/nophoto.gif" alt="{lang default_album}" /></a>
									</div>
									<div class="auth ptm"><a href="home.php?mod=space&uid=$value[uid]&do=album&id=-1" class="xi2">{lang default_album}</a></div>
								</li>
							</ul>
						<!--{else}-->
							<div class="emp">{lang no_album}</div>
						<!--{/if}-->
					<!--{/if}-->

					<script type="text/javascript" src="$_G['style']['styleimgdir']/redef.js?{VERHASH}"></script>
					<script type="text/javascript" reload="1">
					_attachEvent(window, "load", function () {
						if($("waterfall")) {
							waterfall({"container": $("imglist")});
						}
					});
					</script>

				<!--{/if}-->

				<!--{if !$_G[setting][homepagestyle]}--><!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]--><!--{/if}-->

			</div>
		</div>
	</div>
	<!--{if $diymode}-->
			</div>
		</div>
	<!--{/if}-->
</div>

<!--{if !$_G[setting][homepagestyle]}-->
	<div class="wp mtn">
		<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
	</div>
<!--{/if}-->

<script type="text/javascript">
function fuidgoto(fuid) {
	var parameter = fuid != '' ? '&fuid='+fuid : '';
	window.location.href = 'home.php?mod=space&do=album&view=we'+parameter;
}
</script>

<!--{template common/footer}-->